<div class="widget">
    <h2>Welcome, <?php echo $userdata['firstname'].' '.$userdata['lastname'] ;?> !</h2>
    <div class="inner">
        <ul>
            <li>
                <a href="changepassword.php">Change Password</a>
            </li>
            <li>
                <a href="settings.php">Settings</a>
            </li>
            <li>
                <a href="logout.php">Log out</a>
            </li>
        </ul>
    </div>
</div>